package org.example;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author zhangjg
 * @desc o
 * @date 2023/04/17 15:02
 **/
@Data
public class SortObj implements Comparable<SortObj> {

    private int sortNum;
    private String keyStr;
    private String curDate;
    private String dataDate;


    @Override
    public int compareTo(SortObj o) {
        if(this.sortNum > o.sortNum){
            return 1;
        }else if(this.sortNum == o.sortNum){
            return 0;
        }else {
            return -1;
        }
    }
}
